﻿<%@ Page Language="VB" AutoEventWireup="false" CodeFile="FctHierarchy_Add.aspx.vb" Inherits="FctHierarchy_Add" %>


<%@ Register Assembly="ISNet.WebUI.WebCombo" Namespace="ISNet.WebUI.WebCombo" TagPrefix="ISWebCombo" %>



<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
     <style>
        input {
            font-family: Tahoma !important;
            font-size: 12px !important;
        }

        html * {
            font-family: Tahoma;
            font-size: 12px;
        }
    </style>
    <title></title>
    <link href="css/style.css" rel="stylesheet" />
</head>
<body>
    <form id="form1" runat="server">

        <div style="float: left; width: 97%; border: solid; border-color: gray; border-width: 1px; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; box-shadow: 5px 5px 5px #808080; text-align: right; padding: 5px 5px 5px 5px;">
            <div style="text-align: right; margin-top: 5px;">
                <div align="left" style="width: 600px; float: left">
                    <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
                </div>


            </div>
        </div>
        <br />
        <br />
        <br />
        <br />
        <div align="center">
            <br />
            <br />
            <br />
            <table>
                <tr>
                    <td>หน่วยงานแม่</td>
                    <td align="left">
                        <asp:Label ID="ParentLabel" runat="server" Text="Label"></asp:Label></td>
                </tr>
                <tr>
                    <td>หน่วยงานลูก</td>
                    <td>
                        <ISWebCombo:WebCombo ID="WebCombo1" Width="330px" runat="server" UseDefaultStyle="True" DataTextField="Description" DataValueField="FundCenterCode" Height="20px" OnInitializeDataSource="WebCombo1_InitializeDataSource" AdditionalSearchFields="FundCenterCode" AllowWildCardSearch="true">
                            <LayoutSettings AlwaysShowAllRowsOnDropdown="true" AlwaysShowHelpButton="false" EntryMode="AutoComplete" ComboMode="MultipleColumns">
                            </LayoutSettings>
                            <Columns>
                                <ISWebCombo:WebComboColumn BaseFieldName="Description" Name="Description" HeaderText="ชื่อ FundCenter" Width="250px" />
                                <ISWebCombo:WebComboColumn BaseFieldName="FundCenterCode" Name="FundCenterCode" HeaderText="รหัส FundCenter" Width="80px" />
                            </Columns>
                        </ISWebCombo:WebCombo>
                    </td>


                </tr>
                <tr>
                    <td>ระดับหน่วยงาน</td>
                    <td>
                        <ISWebCombo:WebCombo ID="WebCombo2" Width="200px" runat="server" UseDefaultStyle="True" DataTextField="Description" DataValueField="level" Height="20px" OnInitializeDataSource="WebCombo2_InitializeDataSource" AllowWildCardSearch="true">
                            <LayoutSettings AlwaysShowAllRowsOnDropdown="true" AlwaysShowHelpButton="false" ComboMode="MultipleColumns">
                            </LayoutSettings>
                            <Columns>
                                <ISWebCombo:WebComboColumn BaseFieldName="Description" Name="Description" HeaderText="ชื่อระดับหน่วยงาน" Width="250px" />
                            </Columns>
                        </ISWebCombo:WebCombo>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" align="center">
                        <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/Icons/add.png" /></td>
                </tr>

            </table>
        </div>
    </form>
    <%=AlertText %>
    <%=ScriptText %>
    <script>
        var obj = document.getElementById("WebCombo1");
        obj.style.height = "20px";
        var obj2 = document.getElementById("WebCombo2");
        obj2.style.height = "20px";
    </script>
    <style>
        .WC4-DD-N
        {
            height: 0px;
        }

        .WC4-DD-A
        {
            height: 0px;
        }
    </style>
</body>
</html>
